package com.muyu.system.service.impl;


import com.muyu.system.domain.DanmoMarketPickUp;
import com.muyu.system.mapper.DanmoMarketPickUpMapper;
import com.muyu.system.service.IDanmoMarketPickUpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 书画市场上门取件Service业务层处理
 * 
 * @author kunzong
 * @date 2024-12-27
 */
@Service
public class DanmoMarketPickUpServiceImpl implements IDanmoMarketPickUpService
{
    @Autowired
    private DanmoMarketPickUpMapper danmoMarketPickUpMapper;

    /**
     * 查询书画市场上门取件
     * 
     * @param id 书画市场上门取件主键
     * @return 书画市场上门取件
     */
    @Override
    public DanmoMarketPickUp selectDanmoMarketPickUpById(Long id)
    {
        return danmoMarketPickUpMapper.selectDanmoMarketPickUpById(id);
    }

    /**
     * 查询书画市场上门取件列表
     * 
     * @param danmoMarketPickUp 书画市场上门取件
     * @return 书画市场上门取件
     */
    @Override
    public List<DanmoMarketPickUp> selectDanmoMarketPickUpList(DanmoMarketPickUp danmoMarketPickUp)
    {
        return danmoMarketPickUpMapper.selectDanmoMarketPickUpList(danmoMarketPickUp);
    }

    /**
     * 新增书画市场上门取件
     * 
     * @param danmoMarketPickUp 书画市场上门取件
     * @return 结果
     */
    @Override
    public int insertDanmoMarketPickUp(DanmoMarketPickUp danmoMarketPickUp)
    {
        return danmoMarketPickUpMapper.insertDanmoMarketPickUp(danmoMarketPickUp);
    }

    /**
     * 修改书画市场上门取件
     * 
     * @param danmoMarketPickUp 书画市场上门取件
     * @return 结果
     */
    @Override
    public int updateDanmoMarketPickUp(DanmoMarketPickUp danmoMarketPickUp)
    {
        return danmoMarketPickUpMapper.updateDanmoMarketPickUp(danmoMarketPickUp);
    }

    /**
     * 批量删除书画市场上门取件
     * 
     * @param ids 需要删除的书画市场上门取件主键
     * @return 结果
     */
    @Override
    public int deleteDanmoMarketPickUpByIds(Long[] ids)
    {
        return danmoMarketPickUpMapper.deleteDanmoMarketPickUpByIds(ids);
    }

    /**
     * 删除书画市场上门取件信息
     * 
     * @param id 书画市场上门取件主键
     * @return 结果
     */
    @Override
    public int deleteDanmoMarketPickUpById(Long id)
    {
        return danmoMarketPickUpMapper.deleteDanmoMarketPickUpById(id);
    }
}
